package com.whr.service;

import com.alibaba.fastjson.JSONArray;
import com.whr.bean.*;

import java.util.List;
import java.util.Map;

public interface ProbService {

    List<Problem> findAll();

    void saveProb(Problem prob);

    Problem findById(Integer checks);

    void updateProb(Problem prob);

    void addAppend(Integer pid, String text);

    List<Append> appendByPid(Integer pid);

    void delProb(Integer[] checks);

    void urgProb(Integer[] checks);

    void fineProb(Integer[] checks);

    List<Problem> findAllOrder();

    void endProb(Integer[] checks);

    void addReply(Integer pid, String text);

    List<Reply> replyByPid(Integer pid);

    void addRaty(Integer pid,Double raty);

    Double ratyByPid(Integer pid);

    void updateRole(String role, Integer pid);

    List<Problem> findOver();

    void upOver(Integer pid, String pover);

    void pass(Integer[] checks);

    void unpass(Integer[] checks);

    List<Problem> findRep();

    List<Problem> searchRep(Report report);

    List<Chart> chart();

    List<String> findProb7();

    List<String> findFine7();

    List<String> findReply5();

    JSONArray genJsonArry();

    Map<String,String> genHeadMap();

    List<Problem> findZN(String role);

    List<Problem> findYX(String flag);

    List<Problem> findAllZN(String flag);

    List<Problem> findAllYX(String flag);
}
